package org.example.myleet.p444;

import org.example.myleet.Utils.Assert;
import org.example.myleet.Utils.Parser;

public class Main {
    public static void main(String[] args) {
        Solution solution = new Solution();
        Assert.isTrue(solution.sequenceReconstruction(new int[]{1}, Parser.parse("[[1]]")));
        Assert.isTrue(!solution.sequenceReconstruction(new int[]{1,2,3}, Parser.parse("[[2,3]]")));
        Assert.isTrue(!solution.sequenceReconstruction(new int[]{1,2,3}, Parser.parse("[[1,2],[1,3]]")));
        Assert.isTrue(!solution.sequenceReconstruction(new int[]{1,2,3}, Parser.parse("[[1,2]]")));
        Assert.isTrue(solution.sequenceReconstruction(new int[]{1,2,3}, Parser.parse("[[1,2],[1,3],[2,3]]")));
        Assert.isTrue(solution.sequenceReconstruction(new int[]{4,1,5,2,6,3}, Parser.parse("[[5,2,6,3],[4,1,5,2]]")));
    }
}
